#pragma once
#include "../fuNamedObject.h"
#include <string>
#include <windows.h>

BEGIN_NAMESPACE_CPPX

class DynLib : public fuNamedObject
{
	HINSTANCE   m_hInst;
	bool        m_IsLoaded;

public:
	DynLib(const std::string & name);
	~DynLib(void);

	void  Load(const std::string & name);
	void  Unload(void);
	bool  IsLoaded(void) const;
	void* GetSymbol(const char * strFuncName) const throw();
};

END_NAMESPACE_CPPX
